home *** CD-ROM | disk | FTP | other *** search
- Path: infinitehell.cnmat.berkeley.edu!user
- From: erico@cnmat.berkeley.edu (Eric Obermuhlner)
- Newsgroups: comp.lang.modula2
- Subject: constant tables?
- Date: Thu, 14 Mar 1996 15:06:37 -0900
- Organization: G-Wiz
- Message-ID: <erico-1403961506370001@infinitehell.cnmat.berkeley.edu>
- NNTP-Posting-Host: infinitehell.cnmat.berkeley.edu
- X-Newsreader: Value-Added NewsWatcher 2.0b27.1+
-
- How do I make constant tables?
-
- I write code for an embedded system. Lookup tables in ROM are a pretty useful thing and I just couldn't find a way to do it.
-
- Did I miss something?
-
- Something like
- [BEGIN EXAMPLE]
- VAR
- myTable : ARRAY [0..9] OF CARDINAL = [0, 6, 2, 5, 1, 3, 4, 9, 8, 7];
- [END EXAMPLE]
-
- +-------------------------------------------------------------+
- |Eric Obermuhlner
- |erico@g-wiz.com
- | Microsoft free since 1967
- +-------------------------------------------------------------+
-